import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';

import {AppComponent} from './appdefult/app.component';

import {AppHerodetailComponent} from './heros/app-herodetail/app-herodetail.component';
import {FormsModule} from '@angular/forms';
import {HeroService} from './service/heroService/hero.service';
import {PageNotFoundComponent} from './shared/page-not-found/page-not-found.component';
import {HerolistComponent} from './heros/herolist/herolist.component';
import {AppRoutingModule} from './app-routing.module';
import {HerosModule} from './heros/heros.module';

import {LogindefultComponent} from './login/logindefult/logindefult.component';
import {LoginRoutingModule} from './login/login-routing.module';
import {SharedModule} from './shared/shared.module';
import {ComposeMessageComponent} from './compose-message/compose-message.component';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import {DialogService} from './service/dialogService/dialog.service';


@NgModule({
  declarations: [
    AppComponent,
    LogindefultComponent,
    ComposeMessageComponent,


  ],
  imports: [
    LoginRoutingModule,
    HerosModule,
    AppRoutingModule,
    BrowserModule,
    FormsModule,
    SharedModule,
    BrowserAnimationsModule
  ],
  providers: [HeroService,  DialogService],
  bootstrap: [AppComponent]
})
export class AppModule {
}
